﻿using Ducu.GLB.Global;
using Ducu.SRV.ServiceInteface;
using Ducu.SRV.ViewModel.Message;
using Ducu.SRV.ViewModel.Shared;
using System;
using System.Collections.Generic;

namespace Ducu.SRV.UIDevService
{
    public class MessageService : IMessageService
    {
        public bool HasNew()
        {
            return true;
        }

        public IndexModel GetToMe(Pager pager)
        {
            return new IndexModel
            {
                Items = new List<ItemModel>
                {
                    new ItemModel
                    {
                        CreateTime = DateTime.Now,
                        HasRead = false,
                        Content = "<a href=''>叶子</a>加入了<a href=''>玩命听懂VOA</a>",
                        Id = 7
                    },   
                    new ItemModel
                    {
                        CreateTime = DateTime.Now.AddDays(-2),
                        HasRead = false,
                        Content = "<a href=''>叶子</a>加入了<a href=''>玩命听懂VOA</a>",
                        Id = 7,
                    },   
                    new ItemModel
                    {
                        Content = "跑步锻炼",
                        CreateTime = DateTime.Now.AddDays(-5),
                        HasRead = true,
                        Id = 11,
                    },            
                    new ItemModel
                    {
                        CreateTime = DateTime.Now.AddDays(-5).AddMinutes(-100),
                        HasRead = true,
                        Id = 5
                    }
                }
            };
        }

        public void Read(int id)
        {
            
        }


        public IndexModel GetFromMe(Pager pager)
        {
            throw new NotImplementedException();
        }


        public void SendFromMe(string content, int toId)
        {
            throw new NotImplementedException();
        }


        public int GetToMeCount()
        {
            throw new NotImplementedException();
        }
    }
}
